package com.ruan.service;

import com.alipay.api.AlipayApiException;
import com.ruan.alipay.Alipay;
import com.ruan.entity.AlipayBean;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @ClassName:PayService
 * @Author:阮昇
 * @Description:
 * @Datetime: 2023/7/4 16:40
 **/
@Service
public class PayService {
    @Resource
    private Alipay alipay;

    public String aliPay(AlipayBean alipayBean) throws AlipayApiException {
        return alipay.pay(alipayBean);
    }

}
